Skip to content

[#531] Fix X/Twitter share preview — dynamic OG image#534

Merged
realproject7 merged 1 commit intomainfrom
task/531-x-share-og
Mar 25, 2026
Merged

[#531] Fix X/Twitter share preview — dynamic OG image#534
realproject7 merged 1 commit intomainfrom
task/531-x-share-og

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Added twitter metadata object to story page generateMetadata()
  • twitter.card = "summary_large_image" ensures X shows the large preview
  • twitter.images points to the dynamic OG route (/story/[id]/og)
  • Both openGraph and twitter objects now set, preventing fallback to site-level logo
  • Bumped version to 0.1.9

Test plan

  • Share a story URL on X/Twitter — should show per-story moleskine thumbnail, not site logo
  • Verify with Twitter Card Validator
  • OpenGraph preview still works on other platforms (Slack, Discord, iMessage)

Fixes #531

🤖 Generated with Claude Code

Add twitter metadata to story page generateMetadata():
- twitter.card = summary_large_image
- twitter.title, twitter.description, twitter.images
- Points to dynamic OG route for per-story moleskine thumbnail
- Bump version to 0.1.9

Fixes #531

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 25, 2026 10:12am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVE — minimal, correct fix. twitter metadata added alongside existing openGraph. summary_large_image card type is correct for 1200x630 OG images. No issues.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

Minimal, focused fix. The story page now sets explicit Twitter card metadata alongside the existing per-story Open Graph image, which is the change issue #531 calls for.

Findings

  • No blocking findings.

Decision

Approve. twitter.card is set to summary_large_image, twitter.images points at the dynamic /story/[id]/og route, and og:image still points to that same story-specific image, so the page should stop falling back to the site-level logo on X.

@realproject7 realproject7 merged commit 104e7ea into main Mar 25, 2026
5 checks passed
@realproject7 realproject7 deleted the task/531-x-share-og branch March 25, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix X/Twitter share preview — story OG image not showing, uses site fallback

2 participants